<?php

/**
 * 各种单据类数据的枚举类型 
 */
class Application_Model_Status extends Application_Model_DomainObject{
    
    protected $_id;
    
    protected $_name;
    
    protected $_statusValue;
    
    protected $_statusType;

    protected $_remark;
    /**
     * 新创建状态 
     */
    const Created=0;
    
    /**
     * 成功 
     */
    const Success =1;
    
    /**
     * 已确认 
     */
    const Confirmed =2;
    
     public static function getFilter($name,$pagesize,$pageindex){
            $where=array();
            if($name != null){
                $where[" (name like "] = "%".$name."%";
                $where[" or statusValue like "] = "%".$name."%";
                $where[" or statusType like "] = "%".$name."%";
                $where[" or remark like "] = "%".$name."%";
                $where[' ) and '] = "1=1";
            }
            return Application_Model_Status::getDao()->queryPage($where,'id desc',$pagesize,$pageindex); 
     }
     
     
     
}